﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hxj.Data;
using System.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{
    /// <summary>
    /// 实体类TB_Exam_Result 。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public class TB_Exam_Result : Entity
    {
        public TB_Exam_Result() : base("TB_Exam_Result") { _SignUpStudentsSpecialityID = Guid.NewGuid().ToString(); }

        #region Model
        private string _SignUpStudentsSpecialityID;
        private string _AllowExamID;
        private string _Score1;
        private string _Score2;
        private string _Score3;
        private string _Score4;
        private string _Score5;
        private string _Score6;
        private string _Score7;
        private string _Score8;
        private string _Score9;
        private string _AppendScore;
        private string _ScoreTotal;
        private string _Sort;
        private string _IsPass;
        private string _PassPaperNO;
        /// <summary>
        /// 
        /// </summary>
        public string SignUpStudentsSpecialityID
        {
            get { return _SignUpStudentsSpecialityID; }
            set
            {
                this.OnPropertyValueChange(_.SignUpStudentsSpecialityID, _SignUpStudentsSpecialityID, value);
                this._SignUpStudentsSpecialityID = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string AllowExamID
        {
            get { return _AllowExamID; }
            set
            {
                this.OnPropertyValueChange(_.AllowExamID, _AllowExamID, value);
                this._AllowExamID = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Score1
        {
            get { return _Score1; }
            set
            {
                this.OnPropertyValueChange(_.Score1, _Score1, value);
                this._Score1 = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Score2
        {
            get { return _Score2; }
            set
            {
                this.OnPropertyValueChange(_.Score2, _Score2, value);
                this._Score2 = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Score3
        {
            get { return _Score3; }
            set
            {
                this.OnPropertyValueChange(_.Score3, _Score3, value);
                this._Score3 = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Score4
        {
            get { return _Score4; }
            set
            {
                this.OnPropertyValueChange(_.Score4, _Score4, value);
                this._Score4 = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Score5
        {
            get { return _Score5; }
            set
            {
                this.OnPropertyValueChange(_.Score5, _Score5, value);
                this._Score5 = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Score6
        {
            get { return _Score6; }
            set
            {
                this.OnPropertyValueChange(_.Score6, _Score6, value);
                this._Score6 = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Score7
        {
            get { return _Score7; }
            set
            {
                this.OnPropertyValueChange(_.Score7, _Score7, value);
                this._Score7 = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Score8
        {
            get { return _Score8; }
            set
            {
                this.OnPropertyValueChange(_.Score8, _Score8, value);
                this._Score8 = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Score9
        {
            get { return _Score9; }
            set
            {
                this.OnPropertyValueChange(_.Score9, _Score9, value);
                this._Score9 = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string AppendScore
        {
            get { return _AppendScore; }
            set
            {
                this.OnPropertyValueChange(_.AppendScore, _AppendScore, value);
                this._AppendScore = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ScoreTotal
        {
            get { return _ScoreTotal; }
            set
            {
                this.OnPropertyValueChange(_.ScoreTotal, _ScoreTotal, value);
                this._ScoreTotal = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Sort
        {
            get { return _Sort; }
            set
            {
                this.OnPropertyValueChange(_.Sort, _Sort, value);
                this._Sort = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string IsPass
        {
            get { return _IsPass; }
            set
            {
                this.OnPropertyValueChange(_.IsPass, _IsPass, value);
                this._IsPass = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string PassPaperNO
        {
            get { return _PassPaperNO; }
            set
            {
                this.OnPropertyValueChange(_.PassPaperNO, _PassPaperNO, value);
                this._PassPaperNO = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
				_.SignUpStudentsSpecialityID};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
				_.SignUpStudentsSpecialityID,
				_.AllowExamID,
				_.Score1,
				_.Score2,
				_.Score3,
				_.Score4,
				_.Score5,
				_.Score6,
				_.Score7,
				_.Score8,
				_.Score9,
				_.AppendScore,
				_.ScoreTotal,
				_.Sort,
				_.IsPass,
				_.PassPaperNO};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
				this._SignUpStudentsSpecialityID,
				this._AllowExamID,
				this._Score1,
				this._Score2,
				this._Score3,
				this._Score4,
				this._Score5,
				this._Score6,
				this._Score7,
				this._Score8,
				this._Score9,
				this._AppendScore,
				this._ScoreTotal,
				this._Sort,
				this._IsPass,
				this._PassPaperNO};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._SignUpStudentsSpecialityID = DataUtils.ConvertValue<string>(reader["SignUpStudentsSpecialityID"]);
            this._AllowExamID = DataUtils.ConvertValue<string>(reader["AllowExamID"]);
            this._Score1 = DataUtils.ConvertValue<string>(reader["Score1"]);
            this._Score2 = DataUtils.ConvertValue<string>(reader["Score2"]);
            this._Score3 = DataUtils.ConvertValue<string>(reader["Score3"]);
            this._Score4 = DataUtils.ConvertValue<string>(reader["Score4"]);
            this._Score5 = DataUtils.ConvertValue<string>(reader["Score5"]);
            this._Score6 = DataUtils.ConvertValue<string>(reader["Score6"]);
            this._Score7 = DataUtils.ConvertValue<string>(reader["Score7"]);
            this._Score8 = DataUtils.ConvertValue<string>(reader["Score8"]);
            this._Score9 = DataUtils.ConvertValue<string>(reader["Score9"]);
            this._AppendScore = DataUtils.ConvertValue<string>(reader["AppendScore"]);
            this._ScoreTotal = DataUtils.ConvertValue<string>(reader["ScoreTotal"]);
            this._Sort = DataUtils.ConvertValue<string>(reader["Sort"]);
            this._IsPass = DataUtils.ConvertValue<string>(reader["IsPass"]);
            this._PassPaperNO = DataUtils.ConvertValue<string>(reader["PassPaperNO"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._SignUpStudentsSpecialityID = DataUtils.ConvertValue<string>(row["SignUpStudentsSpecialityID"]);
            this._AllowExamID = DataUtils.ConvertValue<string>(row["AllowExamID"]);
            this._Score1 = DataUtils.ConvertValue<string>(row["Score1"]);
            this._Score2 = DataUtils.ConvertValue<string>(row["Score2"]);
            this._Score3 = DataUtils.ConvertValue<string>(row["Score3"]);
            this._Score4 = DataUtils.ConvertValue<string>(row["Score4"]);
            this._Score5 = DataUtils.ConvertValue<string>(row["Score5"]);
            this._Score6 = DataUtils.ConvertValue<string>(row["Score6"]);
            this._Score7 = DataUtils.ConvertValue<string>(row["Score7"]);
            this._Score8 = DataUtils.ConvertValue<string>(row["Score8"]);
            this._Score9 = DataUtils.ConvertValue<string>(row["Score9"]);
            this._AppendScore = DataUtils.ConvertValue<string>(row["AppendScore"]);
            this._ScoreTotal = DataUtils.ConvertValue<string>(row["ScoreTotal"]);
            this._Sort = DataUtils.ConvertValue<string>(row["Sort"]);
            this._IsPass = DataUtils.ConvertValue<string>(row["IsPass"]);
            this._PassPaperNO = DataUtils.ConvertValue<string>(row["PassPaperNO"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "TB_Exam_Result");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field SignUpStudentsSpecialityID = new Field("SignUpStudentsSpecialityID", "TB_Exam_Result", "SignUpStudentsSpecialityID");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field AllowExamID = new Field("AllowExamID", "TB_Exam_Result", "AllowExamID");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Score1 = new Field("Score1", "TB_Exam_Result", "Score1");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Score2 = new Field("Score2", "TB_Exam_Result", "Score2");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Score3 = new Field("Score3", "TB_Exam_Result", "Score3");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Score4 = new Field("Score4", "TB_Exam_Result", "Score4");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Score5 = new Field("Score5", "TB_Exam_Result", "Score5");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Score6 = new Field("Score6", "TB_Exam_Result", "Score6");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Score7 = new Field("Score7", "TB_Exam_Result", "Score7");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Score8 = new Field("Score8", "TB_Exam_Result", "Score8");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Score9 = new Field("Score9", "TB_Exam_Result", "Score9");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field AppendScore = new Field("AppendScore", "TB_Exam_Result", "AppendScore");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field ScoreTotal = new Field("ScoreTotal", "TB_Exam_Result", "ScoreTotal");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Sort = new Field("Sort", "TB_Exam_Result", "Sort");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field IsPass = new Field("IsPass", "TB_Exam_Result", "IsPass");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field PassPaperNO = new Field("PassPaperNO", "TB_Exam_Result", "PassPaperNO");
        }
        #endregion


    }
}


